<c:choose test="${currentUserIsAdmin}"
          xmlns="http://www.w3.org/1999/xhtml"
          xmlns:c="http://java.sun.com/jstl/core"
          xmlns:ui="http://java.sun.com/jsf/facelets"
          xmlns:f="http://java.sun.com/jsf/core"
          xmlns:h="http://java.sun.com/jsf/html"> 
    <c:when test="#{currentUser==null}">
        <ul>
            <li id="current"><h:commandLink action="login" value="Login"/></li>
        </ul>
    </c:when>
    <c:when test="${page=='orders'}">
        <ul>
            <li><h:commandLink action="#{report.progress}">Progress</h:commandLink></li>
            <li id="current"><h:commandLink action="#{report.finished}">Finished</h:commandLink></li>
        </ul>
    </c:when>
    <c:otherwise>
        <ul>
            <li id="current"><h:commandLink action="#{report.progress}">Progress</h:commandLink></li>
            <li><h:commandLink action="#{report.finished}">Finished</h:commandLink></li>
        </ul>
    </c:otherwise>
</c:choose>

